#include "gamehall.h"

#include <QApplication>

void loopSound()
{
    QSoundEffect *effect = new QSoundEffect;
    effect->setSource(QUrl::fromLocalFile(":/res/background_sound2.wav"));
    effect->setLoopCount(QSoundEffect::Infinite); // 无限次循环播放
    effect->play();
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    GameHall w;
    loopSound();
    w.show();
    return a.exec();
}
